﻿<%@page import="com.hfjyz.registration.command.OrderInfoPayCommand"%>
<%@page import="com.hfjyz.registration.util.MasterUtil"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/view/include.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>网上报名-合肥猎头网</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="${contextPath}/view/css/user.css" type="text/css" media="all" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<script src="${contextPath}/jquery/jquery-1.9.1.js"></script>
<script type="text/javascript">
$(function() {
	$("#btnPay").click(function() {
		$("#confirmDiv").show();
		$("#orderInfoBankPayForm").submit();
        $.ajax({
            data : {
                orderId : '${OrderInfoPayCommand.orderId}',
                submitType : 'payGoing'
            },
            url : '${contextPath}/orderInfoPaySearch.action',
            type: "POST"
        });
	});
	$("#btnPayOK").click(function() {
		$("#confirmDiv").hide();
		$("#submitType").val("payOK");
		$("#orderInfoPayForm").submit();
	});
	$("#btnPayError").click(function() {
		$("#confirmDiv").hide();
		$("#submitType").val("payError");
		$("#orderInfoPayForm").submit();
	});
});
</script>
</head>
<body>

	<%@include file="/view/userMenu.jsp"%>
	<form:form name="orderInfoPayForm" id="orderInfoPayForm" method="post" action="${contextPath}/orderInfoPay.action" commandName="OrderInfoPayCommand">
		<form:hidden path="submitType" id="submitType" />
		<form:hidden path="orderId" id="orderId" />
		<div class="midBox">
			<div class="midTitle">在线支付确认</div>
			<div class="cnt">
				<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#E1E1E1">
					<tr>
						<td height="32" align="left" bgcolor="#FFFFFF" valign="middle" style="padding-left: 10px;"><b><span
								style="color: #666666"
							>订单信息</span></b><br /></td>
					</tr>
					<tr bgcolor="#FFFFFF">
						<td valign="top" align="center" height="200" style="padding-top: 20px; padding-bottom: 10px;">
							<table width="80%" border="0" cellpadding="4" cellspacing="1" bgcolor="#E1E1E1">
								<tr bgcolor="#ffffff">
									<td width="20%" align="right">身份证号：</td>
									<td width="40%" align="left">${OrderInfoPayCommand.idCardNo}</td>
									<td width="20%" align="right">姓名：</td>
									<td width="20%" align="left">${OrderInfoPayCommand.user.name}</td>
									<td rowspan="5">
										<img src="${contextPath}/imageDownload?userId=${OrderInfoPayCommand.idCardNo}" height="140px"
											width="102px"/>
									</td>
								</tr>
								<tr bgcolor="#ffffff">
									<td align="right">报考部门：</td>
									<td align="left">${OrderInfoPayCommand.apply.applyDepartName}</td>
									<td align="right">岗位类别：</td>
									<td align="left" colspan="2">${OrderInfoPayCommand.apply.applyOfficeName}</td>
								</tr>
								<tr bgcolor="#ffffff">
									<td align="right">岗位编号：</td>
									<td align="left" colspan="4">${OrderInfoPayCommand.apply.applyOfficeCode}</td>
								</tr>
								<tr bgcolor="#ffffff">
									<td style="height: 10px; text-align: right;">审核状态：</td>
									<td style="height: 10px; text-align: left; color: #ff0000" colspan="4"><b> <c:choose>
												<c:when test="${OrderInfoPayCommand.apply.state == '0'}">
												未审核
											</c:when>
												<c:when test="${OrderInfoPayCommand.apply.state == '1'}">
												审核未通过
											</c:when>
												<c:when test="${OrderInfoPayCommand.apply.state == '2'}">
												审核通过
											</c:when>
												<c:otherwise>
												&nbsp;
											</c:otherwise>
											</c:choose>
									</b></td>
								</tr>
								<tr bgcolor="#ffffff">
									<td style="height: 10px; text-align: right;">原因：</td>
									<td style="height: 10px; text-align: left;" colspan="4"><pre>${OrderInfoPayCommand.apply.reason}</pre></td>
								</tr>
								<tr bgcolor="#ffffff">
									<td align="right">支付金额：</td>
									<td align="left">${OrderInfoPayCommand.exam.regFee}元</td>
									<td align="right">支付状态：</td>
									<td style="height: 10px; text-align: left; color: #ff0000" colspan="2"><b>
									<c:choose>
										<c:when test="${OrderInfoPayCommand.orderInfo == null }">未支付</c:when>
										<c:otherwise>
											<c:choose>
												<c:when test="${OrderInfoPayCommand.orderInfo.orderState == '3'}">支付结果确认中，请半个小时后再次查询。</c:when>
												<c:when test="${OrderInfoPayCommand.orderInfo.orderState == '2'}">支付失败</c:when>
												<c:when test="${OrderInfoPayCommand.orderInfo.orderState == '1'}">已支付</c:when>
												<c:when test="${OrderInfoPayCommand.orderInfo.orderState == '0'}">未支付</c:when>
												<c:otherwise>&nbsp;</c:otherwise>
											</c:choose>
										</c:otherwise>
									</c:choose>
									</b></td>
								</tr>

								<c:if test="${OrderInfoPayCommand.orderInfo == null || OrderInfoPayCommand.orderInfo.orderState == '2' || OrderInfoPayCommand.orderInfo.orderState == '0'}">
									<tr bgcolor="#ffffff">
										<td style="height: 10px; text-align: left;"
											colspan="5"><p>
											支付注意事项 ：<br/>
											1.本功能暂时仅支持通过中国工商银行网上银行进行支付，在报名前应根据自己实际情况在当地办理好相关银行卡或存折并开通网上支付功能手续，具备缴费条件。 <br/>
											2.如果没有网上支付经验，请在支付前详细阅读<a href="${contextPath }/view/Regflow.jsp#payFlow"><span style="color:red;">网上支付流程</span></a>和本注意事项。业务咨询可询问当地工商银行或致电工商银行服务电话。（工商银行全国统一24小时服务热线：95588，中国工商银行安徽省分行业务咨询电话：0551- 62667212 、62667212）。 <br/>
											3.请妥善保管好自己的账户与相关密码，不要选择不安全的上网环境使用个人网上银行，同时应保护好银行卡号和密码，注意卡内资金安全。 <br/>
											4.如果因上网条件或网络传输等原因造成支付速度慢，请耐心等待，不要重复点击；如果因为种种原因网上支付没有成功的，可点击报名系统中“网上支付”重新支付。 <br/>
											5.如出现多缴费或重复缴费，请致电合肥猎头网客服0551-62891910，合肥猎头网在考试结束后三十日内予以确认后，将所退款项返回到原付款账户。<br/>
											<br/>
											　　更多电子银行业务功能、使用介绍和问题解答，请访问工行门户网站www.icbc.com.cn，或咨询工行客服热线95588和营业网点。<br/>
											　　安徽省工行业务咨询电话：0551-62667212、62667202<br/>
											　　中国工商银行 客服电话：95588<br/>
											</p>
										</td>
									</tr>
									<tr bgcolor="#ffffff">
									<td style="height: 10px; text-align: center; padding-left: 100px;" colspan="5">
										<input type="button" id="btnPay" value="去银行交费" style="width: 100px;"/>
									</td>
								</tr>
								</c:if>
							</table>
						</td>
					</tr>
				</table>
			</div>
		</div>
		<c:if test="${OrderInfoPayCommand.orderInfo == null || OrderInfoPayCommand.orderInfo.orderState == '2' || OrderInfoPayCommand.orderInfo.orderState == '0'}">		
		<div id="confirmDiv" class="confirmWindow" style="display: none">
			<div class="confirmDialog">
				<div class="confirmTitle">网上支付提示</div>
				<div class="confirmcnt">
					<p>支付完成前，请不要关闭此支付验证窗口。</p>
					<p>支付完成后，请根据您支付的情况点击下面按钮。</p>
					<p class="confirmBtn"><input type="button" id="btnPayOK" value="支付完成" /><input
						type="button" id="btnPayError" value="支付出现问题" /></p>
				</div>
			</div>
		</div>
		</c:if>
	</form:form>
	<%@include file="/view/footer.jsp"%>
	<c:if test="${OrderInfoPayCommand.orderInfo == null || OrderInfoPayCommand.orderInfo.orderState == '2' || OrderInfoPayCommand.orderInfo.orderState == '0'}">
	<form name="orderInfoBankPayForm" id="orderInfoBankPayForm" method="post" action="${OrderInfoPayCommand.bankURL}" target="about:blank">
		<input name="interfaceName" type="hidden" value="${OrderInfoPayCommand.interfaceName}" />
		<input name="interfaceVersion" type="hidden" value="${OrderInfoPayCommand.interfaceVersion}" />
		<input name="tranData" type="hidden" value="${OrderInfoPayCommand.tranData}" />
		<input name="merSignMsg" type="hidden" value="${OrderInfoPayCommand.merSignMsg}" />
		<input name="merCert" type="hidden" value="${OrderInfoPayCommand.merCert}" />
	</form>
	</c:if>
</body>
</html>
